<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>计算器</title>
    <link rel="stylesheet" type="text/css" href="calculator.css">
    <script type="text/javascript" src="calculator1.js"></script>
</head>

<body>
    <div class="calculator">
        <input class="output" value="0" id="output" disabled onblur="fn()"/>
        <div class="numbers">
            <input type="button" value="7" onclick="calculator.numberClick(7)">
            <input type="button" value="8" onclick="calculator.numberClick(8)">
            <input type="button" value="9" onclick="calculator.numberClick(9)">
            <input type="button" value="4" onclick="calculator.numberClick(4)">
            <input type="button" value="5" onclick="calculator.numberClick(5)">
            <input type="button" value="6" onclick="calculator.numberClick(6)">
            <input type="button" value="1" onclick="calculator.numberClick(1)">
            <input type="button" value="2" onclick="calculator.numberClick(2)">
            <input type="button" value="3" onclick="calculator.numberClick(3)">
            <input type="button" value="0" onclick="calculator.numberClick(0)">
            <input type="button" value="AC" onclick="calculator.cleanClick()">
            <input type="button" value="=" onclick="calculator.equalClick()">
        </div>
        <div class="operators">
            <input type="button" value="*" onclick="calculator.operatorClick(value)">
            <input type="button" value="-" onclick="calculator.operatorClick(value)">
            <input type="button" value="+" onclick="calculator.operatorClick(value)">
            <input type="button" value="/" onclick="calculator.operatorClick(value)">
        </div>
    </div>

</body>

</html>